import layoutHeaderAside from '@/layout/header-aside'
import i18n from '../../i18n'
// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const meta = { auth: true }

export default {
    path: '/page/discern',
    name: 'page-discern',
    meta,
    redirect: { name: 'page-discern-list' },
    component: layoutHeaderAside,
    children: [
        { path: 'list', name: 'page-discern-list', component: _import('page/discern/list'), meta: { ...meta, title: i18n.t('menu.discern.list') } },
        { path: 'statistics', name: 'page-discern-statistics', component: _import('page/discern/statistics'), meta: { ...meta, title: i18n.t('menu.discern.statistics') } },
    ]
}
